import request from '@/api/request';
function goodsDetail(data) {
    return request({
        method: "get",
        url: "/goods/detailaction",
        data
    })
}
function addCar(data) {
    return request({
        method: "post",
        url: "/cart/addCart",
        contentType: 'x-www-form-urlencoded',
        data
    })
}
function buyNow(data) {
    return request({
        method: "post",
        url: "/order/submitAction",
        contentType: 'x-www-form-urlencoded',
        data
    })
}
function collect(data) {
    return request({
        method: "post",
        url: "/collect/addcollect",
        contentType: 'x-www-form-urlencoded',
        data
    })
}
export {
    goodsDetail,
    collect,
    addCar,
    buyNow
}